﻿@namespace LaserMark.Components.Components

<div class="zero-control">
    <div class="row g-3">
        <div class="col-12">
            <Alert ShowBar="true" ShowBorder="true" Color="Color.Primary">
                <div>回零过程中，请勿关闭当前页面以及切换当前面板</div>
            </Alert>
        </div>
        <div class="col-3">
            <Button Text="X轴回零" IsDisabled="@IsXZero" OnClick="OnXZero"></Button>
        </div>
        <div class="col-3">
            X: @X mm
        </div>
        <div class="col-3">
            <Light Color="@Axis2Limit"></Light>
            <span>正限位</span>
        </div>
        <div class="col-3">
            <Light Color="@Axis2Limit"></Light>
            <span>负限位</span>
        </div>
    </div>

    <div class="row g-3 mt-3">
        <div class="col-3">
            <Button Text="Y轴回零" IsDisabled="@IsYZero" OnClick="OnYZero"></Button>
        </div>
        <div class="col-3">
            Y: @Y mm
        </div>
        <div class="col-3">
            <Light Color="@Axis3Limit"></Light>
            <span>正限位</span>
        </div>
        <div class="col-3">
            <Light Color="@Axis3Limit"></Light>
            <span>负限位</span>
        </div>
    </div>

    <div class="row g-3 mt-3">
        <div class="col-3">
            <Button Text="Z轴回零" IsDisabled="@IsZZero" OnClick="OnZZero"></Button>
        </div>
        <div class="col-3">
            Z: @Z mm
        </div>
        <div class="col-3">
            <Light Color="@Axis4Limit"></Light>
            <span>正限位</span>
        </div>
        <div class="col-3">
            <Light Color="@Axis4Limit2"></Light>
            <span>负限位</span>
        </div>
    </div>

    <div class="row g-3 mt-3">
        <div class="col-3">
            <Button class="btn-stop" Text="停止" OnClick="OnStop"></Button>
        </div>
    </div>
</div>

<div class="form-footer">
    <DialogCloseButton></DialogCloseButton>
</div>
